<h2>View parameter</h2>
<?php
$items = array ();
if ($model->read_only) {
	$items = array (
		'list',
		'create'
	);
} else {
	$items = array (
		'list',
		'create',
		'update',
		'delete'
	);
}
$this->widget('application.modules.admin.widgets.ParameterSubMenu', array (
	"model" => $model,
	"items" => $items
));
?>
<div class="yiiForm">
	<div class="simple">
		<?php echo CHtml::activeLabel($model,'param_mnemonic'); ?>
		<?php echo CHtml::activeTextField($model,'param_mnemonic',array('size'=>65,'maxlength'=>100, 'readOnly' => true)); ?>
	</div>
	<div class="simple">
		<?php echo CHtml::activeLabel($model,'param_label'); ?>
		<?php echo CHtml::activeTextarea($model,'param_label',array('cols'=>50,'rows'=>4, 'readOnly' => true)); ?>
	</div>
	<div class="simple">
		<?php echo CHtml::activeLabel($model,'param_type'); ?><div class="clean">
		<?php

echo CHtml::activeRadioButtonList($model, 'param_type', array (
	'table' => Yii::t('parameter', 'table of parameters'),
	'list' => Yii::t('parameter', 'list of parameters')
), array (
	'disabled' => true
));
?></div>
	</div>
	<div class="simple">
		<?php echo CHtml::activeLabel($model,'read_only'); ?>
		<?php echo CHtml::activeCheckBox($model, 'read_only', array ('disabled' => true )); ?>
	</div>
</div> <!-- yiiForm -->

<?php
echo $this->renderPartial('_'.$model->param_type, array (
	'parameter' => $model->parameter,
	'model' => $model,
	'update' => true
));
?>
